<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_JS运算符</title>
</head>
<body>
<script>
    console.log(6/2);
    console.log(3/2);

    console.log(3>10);
    console.log(3>'10');
    console.log('3'>10);
    console.log('3'>'10');
    console.log('抄'>'与');//编码 a ？ 程
    console.log('抄'.charCodeAt());
    console.log('与'.charCodeAt());
    console.log('124522'.charCodeAt(3));

    let a = 1;
    let b = true;
    console.log(a == b);//松散比较运算符 true 先将true转为数值,值都是1
    console.log(a === b);//严格比较运算符 false 先比较数据类型,再比较值 number ≠ boolean

    let c = 0;
    console.log(c == 0 ? 'yes':'no');
    console.log(c = 1 ? 'yes':'no');
</script>
</body>
</html>